/*
 * lib2Desa - Another 2D game library in C++
 * Copyright (C) 2009 Erivaldo Xavier de Lima Filho
 *
 * This program is free software and is distributed under GNU General Public License version 3. You can modify and/or redistribute
 * it under the terms of GPL version 3 or posterior version. This program comes with NO WARRANTY, for more details, see LICENSE,
 * or <http://www.gnu.org/licenses>.
 *
 * Contact info:
 *
 *	Erivaldo Xavier de Lima Filho, desadoc@gmail.com
 *
 */

#include "Lua/Scene.hpp"

#include "Core/Scene.hpp"
using namespace lib2Desa;

#include <iostream>
using namespace std;

int Scene_new(lua_State* L)
{
	Scene* _new = new Scene();
	
	size_t nbytes = sizeof(_new);
	Scene *ud = (Scene*) lua_newuserdata(L, nbytes);
	*ud = *_new;
	
    luaL_getmetatable(L, "lib2Desa.Scene");
	lua_setmetatable(L, -2);
	
	return 1;
}
